<template>
  <div class="confim-modal">
    <button @click="isOpen = true">打开</button>

    <Teleport to="#footer">
      <div v-if="isOpen">
        <p>信息信息信息信息信息信息信息信息信息信息信息</p>
        <button @click="isOpen = false">取消</button>
      </div>
    </Teleport>

    <Suspense />
  </div>
</template>

<script>
import Suspense from "./components/suspense.vue";
import { ref } from "vue";
export default {
  components:Suspense,
  setup() {
    const isOpen = ref(false);

    return { isOpen };
  },
};
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
  margin-top: 60px;
}
</style>
